package com.xc.h05.mapper;

import com.xc.h05.entity.Consult;
import com.xc.h05.entity.Question;
import com.xc.h05.entity.Specialty;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 30658
* @description 针对表【specialty】的数据库操作Mapper
* @createDate 2025-03-07 19:54:45
* @Entity com.xc.h05.entity.Specialty
*/
@Mapper
public interface SpecialtyMapper {

    // 添加
    int add(Specialty specialty);
    // 删除
    int delete(int id);
    // 批量删除
    int deletes(List list);
    // 修改
    int update(Specialty specialty);
    // 根据**分页查询
    List<Specialty> findByPage(Specialty specialty);
    // 根据id查询 没有controller方法
    List<Specialty> findById(List list);
    //查询所有
    List<Specialty> findAll();
    //查询所有
    List<Specialty> findAllByName(String name);
    //根据多个sid查询
    List<Specialty> findByIds(List list);

}
